import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { TimeService } from '../../service/timeservice/time.service';
import { ViewChild } from '@angular/core';
import { PopupComponent, SkinType } from 'ngx-weui';

@Component({
  selector: 'app-medicalrecords',
  templateUrl: './medicalrecords.component.html',
  styleUrls: ['./medicalrecords.component.css']
})
export class MedicalrecordsComponent implements OnInit {

  @ViewChild('simple') simplePopup: PopupComponent;

    shown = false;
    radio: any;
    res: any = {
      cho2: true,
      agree: true
    };

    constructor( private service: TimeService, private router: Router ) {
      this.radio = this.service.person; // 就诊人列表
      this.res.radio = this.radio[0]; // 默认选中第一个
    }
  ngOnInit() {
  }
  goInfo() {
      this.router.navigate(['/medicalrecord/medicalrecordsinfo']);
  }
}
